package com.example.software.dao;

import com.example.software.entity.MedicineEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 
 * 
 * @author wxy
 * @email wxy9496099@163.com
 * @date 2024-10-31 21:55:40
 */
@Mapper
public interface MedicineDao extends BaseMapper<MedicineEntity> {

    @Select("select id from medicine where medicine_type_id = #{medicineTypeId}")
    List<Long> getMedicineIdsByTypeId(Long medicineTypeId);
}
